package cn.ycq.im.chat;

import lombok.Data;

import java.io.Serializable;
import java.util.HashMap;

@Data
public class CmdTransport extends HashMap<String,Object> implements Serializable {
    public CmdType getCmd(){
        return CmdType.valueOf((Integer) this.get("cmdType"));
    }

    public void setCmd(int cmd){
        this.put("cmdType",cmd);
    }

}
